<?php

/*
 * @return an array with the parameters of the function 
 */
function make_array( )
{
	return func_get_args( );
}

/*
 * @param $class the name of the class that should be instantiated
 * @param $array the array with key=>value combinations that is used to create the object
 * @return an object of type $class with the values from $array
*/
function a2o( $class, $array ) { return array2object( $class, $array ); }
function array2object( $class, $array )
{
	$obj = new $class( );
	foreach($array as $key => $value)
		$obj->$key = $value;
	return $obj;
}
